package com.top10.service.impl;

import com.top10.entity.CouponShop;
import com.top10.mapper.CouponShopMapper;
import com.top10.service.ICouponShopService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author su
 * @since 2018-10-02
 */
@Service
public class CouponShopServiceImpl extends ServiceImpl<CouponShopMapper, CouponShop> implements ICouponShopService {
    @Autowired
    private CouponShopMapper couponShopMapper;



    @Override
    public List<Map<String, Object>> selectshoprecommend(String shopuuid) {
        return couponShopMapper.selectshoprecommend(shopuuid);
    }

    @Override
    public List<Map<String, Object>> selectshopgoodsbysort(String shopuuid, String goodsclassuuid, Long sortid) {
        return couponShopMapper.selectshopgoodsbysort(shopuuid,goodsclassuuid,sortid);
    }


    @Override
    public List<Map<String, Object>> selectgoodcomment(String shopuuid, String goodsclassuuid) {
        return couponShopMapper.selectgoodcomment(shopuuid,goodsclassuuid);
    }

    @Override
    public List<Map<String, Object>> selectshopallgoodsbysort(String shopuuid, Long sortid) {
        return couponShopMapper.selectshopallgoodsbysort(shopuuid,sortid);
    }

    @Override
    public List<Map<String, Object>> selectallgoodcomment(String shopuuid) {
        return couponShopMapper.selectallgoodcomment(shopuuid);
    }


}
